using System;
using System.Collections.Generic;
using System.Text;

namespace Impact.Model.Objects
{
    /// <summary>
    /// a container for the different data collected when a search is performed.  a search
    /// will typically return a list of SearchResult objects.
    /// </summary>
    public struct SearchResult
    {
        /// <summary>
        /// constructor. initializes members to parameters.
        /// </summary>
        public SearchResult(string title, string description, string url, DateTime lastUpdated)
        {
            this.title = title;
            this.description = description;
            this.url = url;
            this.lastUpdated = lastUpdated;
        }

        /// <summary>
        /// link to the object found in the search
        /// </summary>
        public string Url
        {
            get { return url; }
            set { url = value; }
        }
        private string url;

        /// <summary>
        /// short string describing the object
        /// </summary>
        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        private string title;

        /// <summary>
        /// long description of the object
        /// </summary>
        public string Description
        {
            get { return description; }
            set { description = value; }
        }
        private string description;

        /// <summary>
        /// last time the object was updated
        /// </summary>
        public DateTime LastUpdated
        {
            get { return lastUpdated; }
            set { lastUpdated = value; }
        }
        private DateTime lastUpdated;


    }
}
